package com.hxzy.mapper;

import com.hxzy.dto.HoustStatusDTO;
import com.hxzy.entity.HouseStatus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * HouseStatusMapper继承基类
 */
@Mapper
@Repository
public interface HouseStatusMapper extends MyBatisBaseDao<HouseStatus, Integer> {
    List<HouseStatus> search(HoustStatusDTO houstStatusDTO);

    /**
     * 验证名称是否存在（新增，修改）
     * @param id
     * @param name
     * @return
     */
    int  existsName(@Param(value = "id") Integer id, @Param(value = "name") String name);
}